package com.eric.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 材料入库表
 * </p>
 *
 * @author 新哥
 * @since 2024-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("material_in")

public class MaterialIn implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
    * 主键id，自增、唯一
    * */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "material_id")
    private Integer materialId;

    /*
    * 材料名称
    * */
    @TableField("material_name")
    private String materialName;

    @TableField("type_name")
    private String typeName;

    @TableField("layout")
    private String layout;

    /*
    * 材料品牌
    * */
    @TableField("brand")
    private String brand;

    /*
    * 材料型号
    * */
    @TableField("model")
    private String model;

    /*
    * 材料数量
    * */
    @TableField("number")
    private double number;

    /*
    * 材料单位
    * */
    @TableField("pieces")
    private String pieces;

    /*
    * 材料单价
    * */

    @TableField("price")
    private double price;

    @TableField("totalPrice")
    private double totalPrice;

    /*
    * 材料编码
    * */
    @TableField("encode")
    private String encode;

    /*
    * 材料所在仓库名称
    * */
    @TableField("warehouse")
    private String warehouse;

    /*
    * 领取材料项目名称
    * */
    @TableField("receive_project")
    private String receiveProject;

    /*
    * 备注，描述
    * */
    @TableField("description")
    private String description;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @TableField("version")
    @Version
    private Integer version;

    @TableField("status")
    private Integer status;


    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;


    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @TableField("create_by")
    private String createBy;


    @TableField("last_update_by")
    private String lastUpdateBy;


}
